package com.lb.ai;

import java.util.Scanner;

/**
 * @version 1.0
 * @Author: Edward
 * @Date: 2022/1/5 8:57
 * @Description:
 */
public class AiMain {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String str;
        while (true) {
            str = sc.next();
            str = str.replace("吗", "");
            str = str.replace("?", "!");
            str = str.replace("? ", "!");
            System.out.println(str);
        }
    }
}
